<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/11/28
 * Time: 13:51
 */
namespace App\Http\Controllers\Home;
use App\Http\Controllers\Controller;
use App\Models\StockReward;
use App\Models\StockOrder;
class WinningController extends Controller
{
    /*
     * 统计获奖总金额
     * $id活动id号
     * */
    public function count_money($id)
    {
        $a=StockReward::count_money($id);
        var_dump($a);
        exit;
    }

    public function find_activity($uid)
    {
        $activity=StockOrder::find_activity($uid);
        return view('home.winning.hisRecord',['activity'=>$activity]);
    }

    public function find_winning($uid)
    {
        $activity=StockReward::find_winning($uid);
        return view('home.winning.hisRecord',['activity'=>$activity]);
    }
}